<!--_meta 作为公共模版分离出去-->
<?php 
require_once 'comm/_meta.php';
require_once 'comm/chkLoginState.php';
?>
<!--/meta 作为公共模版分离出去-->

<<style>
<!--
/*默认table*/
table{width:100%;empty-cells:show;background-color:transparent;border-collapse:collapse;border-spacing:0}
table th{text-align:left; font-weight:400}
/*带水平线*/
.table th{font-weight:bold}
.table th,.table td{padding:8px;line-height:20px}
.table td{text-align:left}
.table tbody tr.success > td{background-color:#dff0d8}
.table tbody tr.error > td{background-color:#f2dede}
.table tbody tr.warning > td{background-color:#fcf8e3}
.table tbody tr.info > td{background-color:#d9edf7}
.table tbody + tbody{border-top:2px solid #ddd}
.table .table{background-color:#fff}
 
/*带横向分割线*/
.table-border{border-top:1px solid #ddd}
.table-border th,.table-border td{border-bottom:1px solid #ddd}
 
/*th带背景*/
.table-bg thead th{background-color:#F5FAFE}
/*带外边框*/
.table-bordered{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;border-left:0}
.table-bordered th,.table-bordered td{border-left:1px solid #ddd}
.table-border.table-bordered{border-bottom:0}
 
/*奇数行背景设为浅灰色*/
.table-striped tbody > tr:nth-child(odd) > td,.table-striped tbody > tr:nth-child(odd) > th{background-color:#f9f9f9}
/*竖直方向padding缩减一半*/
.table-condensed th,.table-condensed td{padding:4px 5px}
/*鼠标悬停样式*/
.table-hover tbody tr:hover td,.table-hover tbody tr:hover th{background-color: #f5f5f5}
/*定义颜色*/
/*悬停在行*/
.table tbody tr.active,.table tbody tr.active>td,.table tbody tr.active>th,.table tbody tr .active{background-color:#F5F5F5!important}
/*成功或积极*/
.table tbody tr.success,.table tbody tr.success>td,.table tbody tr.success>th,.table tbody tr .success{background-color:#DFF0D8!important}
 
/*警告或出错*/
.table tbody tr.warning,.table tbody tr.warning>td,.table tbody tr.warning>th,.table tbody tr .warning{background-color:#FCF8E3!important}
/*危险*/
.table tbody tr.danger,.table tbody tr.danger>td,.table tbody tr.danger>th,.table tbody tr .danger{background-color:#F2DEDE!important}
 
/*表格文字对齐方式，默认是居左对齐*/
.table .text-c th,.table .text-c td{text-align:center}/*整行居中*/
.table .text-r th,.table .text-r td{text-align:right}/*整行居右*/
.table th.text-l,.table td.text-l{text-align:left!important}/*单独列居左*/
.table th.text-c,.table td.text-c{text-align:center!important}/*单独列居中*/
.table th.text-r,.table td.text-r{text-align:right!important}/*单独列居右*/
-->
</style>
<title>实训中心考勤OA</title>
<meta name="keywords" content="实训中心考勤OA">
<meta name="description" content="实训中心考勤OA">
</head>
<body>
<!--_header 作为公共模版分离出去-->
<?php require_once 'comm/_header.php';
	require_once 'comm/_menu.php';
	$info = new DB();
	
	$res = $info->table_list();
	//var_dump($res);exit;
	//('leave_info',' where stu_id = ');
	
?>
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 
		首页 <span class="c-gray en">&gt;</span> 
		数据库设计文档 <span class="c-gray en"></span> 
		
    </nav>
<!--     echo '字段名称：'.$row['Field'].'-数据类型：'.$row['Type'].'-注释：'.$row['Comment']; -->
    	<div class="Hui-article">
		  <article class="cl pd-20">
		  <?php foreach ($res as $k=>$v){?>
          <table class="table table-border table-bordered table-bg mt-20 table-hover">
          <thead>
                <tr>
                    <th colspan='3'><?php echo $v['table_name'].'('.$v['table_comment'].')';?></th>
                 </tr>
                 <tr>
                    <th width="30%">字段名</th>
                    <th width="30%">字段类型</th>
                    <th width="30%">注释</th>
                 </tr>
             </thead>
             <tbody>
             <?php 
                    foreach ($v['info'] as $x=>$s){
                ?>
                <tr>
                    <td><?php echo $s['Field'];?></td>
                    <td><?php echo $s['Type'];?></td>
                    <td><?php echo $s['Comment'];?></td>
                </tr>
                <?php }?>
                <tbody>
            </table>
          <?php }?>
            </article>
            </div>
</section>



<!--_footer 作为公共模版分离出去-->
<?php require_once 'comm/_footer.php';?>

</body>
</html>